package com.sunfeng.chap4.test21;

import java.io.IOException;
import java.net.ServerSocket;
import java.util.concurrent.TimeUnit;

public class Server {

    public static void main(String[] args) throws InterruptedException, IOException {
        ServerSocket serverSocket = new ServerSocket(8088);

        serverSocket.accept();
        TimeUnit.SECONDS.sleep(Integer.MAX_VALUE);

        serverSocket.close();
    }
}
